<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script src="assets/jquery-3.2.1.min.js"></script>
<script src="assets/jquery-3.2.1.js"></script>
<script type="text/javascript">
    window.onload = function kickout(){
        var href=location.href;
        if(href.indexOf("kickout")>0){
            alert("您的账号在另一台设备上登录，您被挤下线，若不是您本人操作，请立即修改密码！");
        }
    }
</script>
<body>
<form action="/login" method="post">
    <div><label>用户名</label><input type="text" name="name" /></div>
    <div><label>密 码</label><input type="text" name="password" /></div>
    <div><input type="submit" value="登录" /></div>
</form>
</body>
</html>
